package com.itcncp.wechat.app.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class UserAccountInfoExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public UserAccountInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andAccountTypeIsNull() {
            addCriterion("account_type is null");
            return (Criteria) this;
        }

        public Criteria andAccountTypeIsNotNull() {
            addCriterion("account_type is not null");
            return (Criteria) this;
        }

        public Criteria andAccountTypeEqualTo(Byte value) {
            addCriterion("account_type =", value, "accountType");
            return (Criteria) this;
        }

        public Criteria andAccountTypeNotEqualTo(Byte value) {
            addCriterion("account_type <>", value, "accountType");
            return (Criteria) this;
        }

        public Criteria andAccountTypeGreaterThan(Byte value) {
            addCriterion("account_type >", value, "accountType");
            return (Criteria) this;
        }

        public Criteria andAccountTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("account_type >=", value, "accountType");
            return (Criteria) this;
        }

        public Criteria andAccountTypeLessThan(Byte value) {
            addCriterion("account_type <", value, "accountType");
            return (Criteria) this;
        }

        public Criteria andAccountTypeLessThanOrEqualTo(Byte value) {
            addCriterion("account_type <=", value, "accountType");
            return (Criteria) this;
        }

        public Criteria andAccountTypeIn(List<Byte> values) {
            addCriterion("account_type in", values, "accountType");
            return (Criteria) this;
        }

        public Criteria andAccountTypeNotIn(List<Byte> values) {
            addCriterion("account_type not in", values, "accountType");
            return (Criteria) this;
        }

        public Criteria andAccountTypeBetween(Byte value1, Byte value2) {
            addCriterion("account_type between", value1, value2, "accountType");
            return (Criteria) this;
        }

        public Criteria andAccountTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("account_type not between", value1, value2, "accountType");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceIsNull() {
            addCriterion("account_balance is null");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceIsNotNull() {
            addCriterion("account_balance is not null");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceEqualTo(BigDecimal value) {
            addCriterion("account_balance =", value, "accountBalance");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceNotEqualTo(BigDecimal value) {
            addCriterion("account_balance <>", value, "accountBalance");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceGreaterThan(BigDecimal value) {
            addCriterion("account_balance >", value, "accountBalance");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("account_balance >=", value, "accountBalance");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceLessThan(BigDecimal value) {
            addCriterion("account_balance <", value, "accountBalance");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("account_balance <=", value, "accountBalance");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceIn(List<BigDecimal> values) {
            addCriterion("account_balance in", values, "accountBalance");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceNotIn(List<BigDecimal> values) {
            addCriterion("account_balance not in", values, "accountBalance");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("account_balance between", value1, value2, "accountBalance");
            return (Criteria) this;
        }

        public Criteria andAccountBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("account_balance not between", value1, value2, "accountBalance");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyIsNull() {
            addCriterion("credit_money is null");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyIsNotNull() {
            addCriterion("credit_money is not null");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyEqualTo(BigDecimal value) {
            addCriterion("credit_money =", value, "creditMoney");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyNotEqualTo(BigDecimal value) {
            addCriterion("credit_money <>", value, "creditMoney");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyGreaterThan(BigDecimal value) {
            addCriterion("credit_money >", value, "creditMoney");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("credit_money >=", value, "creditMoney");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyLessThan(BigDecimal value) {
            addCriterion("credit_money <", value, "creditMoney");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("credit_money <=", value, "creditMoney");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyIn(List<BigDecimal> values) {
            addCriterion("credit_money in", values, "creditMoney");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyNotIn(List<BigDecimal> values) {
            addCriterion("credit_money not in", values, "creditMoney");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("credit_money between", value1, value2, "creditMoney");
            return (Criteria) this;
        }

        public Criteria andCreditMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("credit_money not between", value1, value2, "creditMoney");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateIsNull() {
            addCriterion("account_registe_date is null");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateIsNotNull() {
            addCriterion("account_registe_date is not null");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateEqualTo(Date value) {
            addCriterionForJDBCDate("account_registe_date =", value, "accountRegisteDate");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("account_registe_date <>", value, "accountRegisteDate");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateGreaterThan(Date value) {
            addCriterionForJDBCDate("account_registe_date >", value, "accountRegisteDate");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("account_registe_date >=", value, "accountRegisteDate");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateLessThan(Date value) {
            addCriterionForJDBCDate("account_registe_date <", value, "accountRegisteDate");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("account_registe_date <=", value, "accountRegisteDate");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateIn(List<Date> values) {
            addCriterionForJDBCDate("account_registe_date in", values, "accountRegisteDate");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("account_registe_date not in", values, "accountRegisteDate");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("account_registe_date between", value1, value2, "accountRegisteDate");
            return (Criteria) this;
        }

        public Criteria andAccountRegisteDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("account_registe_date not between", value1, value2, "accountRegisteDate");
            return (Criteria) this;
        }

        public Criteria andServiceFeeIsNull() {
            addCriterion("service_fee is null");
            return (Criteria) this;
        }

        public Criteria andServiceFeeIsNotNull() {
            addCriterion("service_fee is not null");
            return (Criteria) this;
        }

        public Criteria andServiceFeeEqualTo(BigDecimal value) {
            addCriterion("service_fee =", value, "serviceFee");
            return (Criteria) this;
        }

        public Criteria andServiceFeeNotEqualTo(BigDecimal value) {
            addCriterion("service_fee <>", value, "serviceFee");
            return (Criteria) this;
        }

        public Criteria andServiceFeeGreaterThan(BigDecimal value) {
            addCriterion("service_fee >", value, "serviceFee");
            return (Criteria) this;
        }

        public Criteria andServiceFeeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("service_fee >=", value, "serviceFee");
            return (Criteria) this;
        }

        public Criteria andServiceFeeLessThan(BigDecimal value) {
            addCriterion("service_fee <", value, "serviceFee");
            return (Criteria) this;
        }

        public Criteria andServiceFeeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("service_fee <=", value, "serviceFee");
            return (Criteria) this;
        }

        public Criteria andServiceFeeIn(List<BigDecimal> values) {
            addCriterion("service_fee in", values, "serviceFee");
            return (Criteria) this;
        }

        public Criteria andServiceFeeNotIn(List<BigDecimal> values) {
            addCriterion("service_fee not in", values, "serviceFee");
            return (Criteria) this;
        }

        public Criteria andServiceFeeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("service_fee between", value1, value2, "serviceFee");
            return (Criteria) this;
        }

        public Criteria andServiceFeeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("service_fee not between", value1, value2, "serviceFee");
            return (Criteria) this;
        }

        public Criteria andAccountStateIsNull() {
            addCriterion("account_state is null");
            return (Criteria) this;
        }

        public Criteria andAccountStateIsNotNull() {
            addCriterion("account_state is not null");
            return (Criteria) this;
        }

        public Criteria andAccountStateEqualTo(Byte value) {
            addCriterion("account_state =", value, "accountState");
            return (Criteria) this;
        }

        public Criteria andAccountStateNotEqualTo(Byte value) {
            addCriterion("account_state <>", value, "accountState");
            return (Criteria) this;
        }

        public Criteria andAccountStateGreaterThan(Byte value) {
            addCriterion("account_state >", value, "accountState");
            return (Criteria) this;
        }

        public Criteria andAccountStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("account_state >=", value, "accountState");
            return (Criteria) this;
        }

        public Criteria andAccountStateLessThan(Byte value) {
            addCriterion("account_state <", value, "accountState");
            return (Criteria) this;
        }

        public Criteria andAccountStateLessThanOrEqualTo(Byte value) {
            addCriterion("account_state <=", value, "accountState");
            return (Criteria) this;
        }

        public Criteria andAccountStateIn(List<Byte> values) {
            addCriterion("account_state in", values, "accountState");
            return (Criteria) this;
        }

        public Criteria andAccountStateNotIn(List<Byte> values) {
            addCriterion("account_state not in", values, "accountState");
            return (Criteria) this;
        }

        public Criteria andAccountStateBetween(Byte value1, Byte value2) {
            addCriterion("account_state between", value1, value2, "accountState");
            return (Criteria) this;
        }

        public Criteria andAccountStateNotBetween(Byte value1, Byte value2) {
            addCriterion("account_state not between", value1, value2, "accountState");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateIsNull() {
            addCriterion("account_modify_date is null");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateIsNotNull() {
            addCriterion("account_modify_date is not null");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateEqualTo(Date value) {
            addCriterion("account_modify_date =", value, "accountModifyDate");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateNotEqualTo(Date value) {
            addCriterion("account_modify_date <>", value, "accountModifyDate");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateGreaterThan(Date value) {
            addCriterion("account_modify_date >", value, "accountModifyDate");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateGreaterThanOrEqualTo(Date value) {
            addCriterion("account_modify_date >=", value, "accountModifyDate");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateLessThan(Date value) {
            addCriterion("account_modify_date <", value, "accountModifyDate");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateLessThanOrEqualTo(Date value) {
            addCriterion("account_modify_date <=", value, "accountModifyDate");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateIn(List<Date> values) {
            addCriterion("account_modify_date in", values, "accountModifyDate");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateNotIn(List<Date> values) {
            addCriterion("account_modify_date not in", values, "accountModifyDate");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateBetween(Date value1, Date value2) {
            addCriterion("account_modify_date between", value1, value2, "accountModifyDate");
            return (Criteria) this;
        }

        public Criteria andAccountModifyDateNotBetween(Date value1, Date value2) {
            addCriterion("account_modify_date not between", value1, value2, "accountModifyDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}